var navBtn = document.querySelector('.second-nav-btn')
var secondNav = document.querySelector('.second-nav-display')
var  menuBtn = document.getElementsByClassName('menuBtn');
var assetBtn = document.querySelector('.asset');

menuBtn[0].nextElementSibling.style.display = "block";
menuBtn[0].lastElementChild.style.transform = "rotate(90deg)";
for(var i = 0; i < menuBtn.length; i++) {
	menuBtn[i].onclick = function () {
		if(this.nextElementSibling.style.display === "block") {
			this.nextElementSibling.style.display = "none";
			this.lastElementChild.style.transform = "rotate(360deg)";
		}else {
			this.nextElementSibling.style.display = "block";
			this.lastElementChild.style.transform = "rotate(90deg)";
		}
	}
}
/*document.addEventListener('click',toggleFn)
function toggleFn() {
	if (event.target.className === 'toggle'){
		$('.second-nav-display').toggle();
	}
}*/
$(".aaa").on("click", function(){
	$('.second-nav-display').slideToggle();
});






